#ifndef _chipDefs_h
#define _chipDefs_h

#include <windows.h>

/// <summary>
/// Generic type definition
/// </summary>
typedef unsigned char       u1;
typedef unsigned short      u2;
typedef unsigned int        u4;
typedef char                s1;
typedef short               s2;
typedef int                 s4;

#include <assert.h>
#define ASSERT(X)               assert(X)

/// <summary>
/// Exception management
/// </summary>
#include <setjmp.h>
#define jmp_buf_ext         jmp_buf
#define setjmp_ext          setjmp
#define longjmp_ext         longjmp

#endif // _chipDefs_h